define(['store','aPermissionCard','util','mDict'], function (Store,APermissionCard,Util,MDict) {
    function ViewModel(params) {
        Util.extend(this, params);

        var scope = this;

        var store = new Store({
            model: MDict,
            id: 'dictStore'
        });

        scope.card = {
            title: '字典列表',
            titleButtons: [],
            cardBodyTop:{
                name:'cmp:DictQueryForm',
                params:{
                    record:store.createModel()
                }
            },
            cardBody: {
                name: 'cmp:Grid',
                params: {
                    operations: [],
                    store: store,
                    displayFields: ['rowId', 'type', 'text','value','order']
                }
            }
        };

        this.callParent(params);
    }

    ViewModel.extend(APermissionCard);

    return ViewModel;
});
